/**
 * 渠道设置使用的广告栏上传插件
 */
CKEDITOR.plugins.add('imgUpload', {
  icons: 'imgUpload',
  init: function (editor) {
    var lang = editor.lang.toolbar;
    editor.addCommand('imgUpload', {
      exec: function (editor) {

        var config = editor.config;

        if(config.imgUploadHandle) {
          config.imgUploadHandle(editor);
        }
      },
    });
    editor.ui.addButton('imgUpload', {
      label:lang.toolbarGroups.imgUpload,
      command: 'imgUpload',
      toolbar: 'insert',
    })
  }
})
